package com.example.demo.dao;

import com.example.demo.pojo.SearchQuestion;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;


/**
 * Author by admin, Email xx@xx.com, Date on 2020/5/29.
 * PS: Not easy to write code, please indicate.
 */
public interface ESQuestionDao extends ElasticsearchRepository<SearchQuestion,String> {

    public Page<SearchQuestion> findByTitleLike(String title, String description, Pageable pageable);
}
